<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />
<!--colorbox-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>


<style>
#content{ min-height:600px;_height:600px;}

.table td{ text-align:right;}
.table .textLeft{ text-align:left;}
.table .count td{ text-align:right;}
.table .count .textCenter { text-align: center;}
.table .member-data-body .textLeft{ text-align:left;}

</style>

</head>
<body style="overflow:auto;">
<div id="main">
	<div id="topMenu">
		<div id="navigation">当前位置：<?php echo $this->title;?></div>
		<div id="topOtherMenu"></div>
	</div>
	<div id="body">
		<div id="search">
			<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl(array('action'=>'index'));?>">
				<!-- 时间选择条 -->
				<div id="timeRange">
					<a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',1,<?php echo $this->vars['doType'];?>);" class="<?php echo $this->vars['dateType']==1 ? 'currentTimeRange' : ''?>">昨天</a> <a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',2,<?php echo $this->vars['doType'];?>);" class="<?php echo $this->vars['dateType']==2 ? 'currentTimeRange' : ''?>">最近7天</a> <a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',3,<?php echo $this->vars['doType'];?>);" class="<?php echo $this->vars['dateType']==3 ? 'currentTimeRange' : ''?>">最近30天</a> <a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',4,<?php echo $this->vars['doType'];?>);" class="<?php echo $this->vars['dateType']==4 ? 'currentTimeRange' : ''?>">最近三个月</a> <a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',5,<?php echo $this->vars['doType'];?>);" class="<?php echo $this->vars['dateType']==5 ? 'currentTimeRange' : ''?>">全部</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<span>日期选择</span>：<input name="startTime" type="text" class="input" id="startTime" size="18" value="<?php echo $this->vars['startTime'];?>" /><script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d","firstDay":0,"showsTime":true,"showOthers":false,"timeFormat":24,"inputField":"startTime","button":"startTime"});</script>
	-
	<input name="endTime" type="text" class="input" id="endTime" size="18" value="<?php echo $this->vars['endTime'];?>" />
	<script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d","firstDay":0,"showsTime":true,"showOthers":false,"timeFormat":24,"inputField":"endTime","button":"endTime"});</script>

					<input type="hidden" name="dateType" id="dateType" value="<?php echo $this->vars['dateType'];?>" />
					<input type="hidden" name="doType" id="doType" value="<?php echo $this->vars['doType'];?>" />
					<input name="search" type="button" id="search" value="查找" class="button" onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',6,<?php echo $this->vars['doType'];?>);"/>							
				</div>
				<!-- 时间选择条 -->			
		  </form>
		</div>

		<div id="content">		
			<!--content start-->
				<div class="d-title">
				<a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',<?php echo $this->vars['dateType'];?>,1);" class="<?php echo $this->vars['doType']==1 ? 'on' : ''?>" style="cursor:pointer;">渠道</a> 
				<a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',<?php echo $this->vars['dateType'];?>,2);" class="<?php echo $this->vars['doType']==2 ? 'on' : ''?>" style="cursor:pointer;">专题</a> 
				<a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',<?php echo $this->vars['dateType'];?>,3);" class="<?php echo $this->vars['doType']==3 ? 'on' : ''?>" style="cursor:pointer;">操作系统</a> 
				<a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index')) ;?>',<?php echo $this->vars['dateType'];?>,4);" class="<?php echo $this->vars['doType']==4 ? 'on' : ''?>" style="cursor:pointer;">地域</a>
				<a onclick="selData('<?php echo $this->projectUrl(array('action'=>'index','export'=>'yes')) ;?>',<?php echo $this->vars['dateType'];?>,'<?php echo $this->vars['doType'];?>');" style="cursor:pointer; background:none; padding-left:40px; text-decoration:none;">[输出Excel文件]</a>
				<div  style="clear:both;"></div>
				</div>
				<span class="d-line"></span>
				<!-- doType ==1 -->
				<?php if ($this->vars['doType']==1){ ?>
				<!--start 01-->
				<?php if(count($this->pvRows)>=0){?>
				<table class="table reportTable">
					<tr class="subject">
						<td >渠道</td>
						<td colspan="2" align="center">启动</td>
						<td>商品详情页</td>
						<td colspan="2" align="center">加入购物车</td>
						<td colspan="2" align="center">加入购物车商品</td>
						<td colspan="2" align="center">进入订单页面</td>
						<td colspan="2" align="center">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>次数</td>
						<td>占比(%)</td>
						<td>浏览次数</td>
						<td>次数</td>
						<td>转化率</td>
						<td>数量</td>
						<td>转化率</td>
						<td>次数</td>
						<td>转化率</td>
						<td>数量</td>
						<td>转化率</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['pv'];
					$i=0;
					foreach($this->pvRows as $key=>$row) {
						$i++;
					?>
						<tr class="dataLine  <?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td class="textLeft">
							<span id="img_1_<?php echo $row['code']; ?>"  onclick="low('1_<?php echo $row['code']; ?>','1','<?php echo $this->vars['startTime'];?>','<?php echo $this->vars['endTime'];?>','<?php echo trim($row['name'])!='其他' ? $row['code'] : $this->pvOtherCodeStr;?>','<?php echo $this->projectUrl(array('controller'=>'act-day-data-conversion','action'=>'getdata'));?>');" class="member-data-title-1" style="cursor:pointer;">+</span>
							<span id="name_1_<?php echo $row['code']; ?>">
							<?php 
								if ($row['name']!=''){
									echo $row['name'];
								} else {
									echo "未知渠道";
								}
							 ?>	</span>	</td>
							<td><?php echo $row['pvStart']; ?></td>
							<td><?php echo $row['pvStartPercent']?></td>
							<td><?php echo $row['pvProductInfo']; ?></td>
							<td><?php echo $row['pvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['pvShoppingNum']; ?></td>
							<td><?php echo $row['shoppingNumPercentInfo']; ?></td>
							<td><?php echo $row['pvToCount']; ?></td>
							<td><?php echo $row['toCountPercentInfo'];?></td>
							<td><?php echo $row['pvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo'];?></td>
						</tr>
						<tr class="<?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td colspan="12" style="padding:0 5px; text-align:left;">
							<span id="loading_1_<?php echo $row['code']; ?>"></span>
							<table width="100%" border="0" cellpadding="0" cellspacing="0" id="data_1_<?php echo $row['code']; ?>" class="member-data-body  member-data-1" style="display:none; text-align:left; margin:5px 0;"></table>
							</td>
						</tr>
						
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['pvStart'];?></td>
						<td><?php echo $count['pvStartPercent'];?></td>
						<td><?php echo $count['pvProductInfo'];?></td>
						<td><?php echo $count['pvShopping'];?></td>
						<td><?php echo $count['shoppingPercentInfo'];?></td>
						<td><?php echo $count['pvShoppingNum'];?></td>
						<td><?php echo $count['shoppingNumPercentInfo'];?></td>
						<td><?php echo $count['pvToCount'];?></td>
						<td><?php echo $count['toCountPercentInfo'];?></td>
						<td><?php echo $count['pvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				
				<!--start 01 /-->
				
				<div class="d-margin"></div>
				<!--start 02-->
				<?php if(count($this->uvRows)>=0){?>
				<span class="d-line"></span>
				<table class="table reportTable">
					<tr class="subject">
						<td>渠道</td>
						<td colspan="2">启动</td>
						<td colspan="2">进入商品详情页</td>
						<td colspan="2">加入购物车</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>人数</td>
						<td>占比(%)</td>
						<td>人数</td>
						<td>转化率</td>
						<td>人数</td>
						<td>转化率</td>
						<td>人数</td>
						<td>转化率</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['uv'];
					$i=0;
					foreach($this->uvRows as $key=>$row) {
						$i++;
					?>
						<tr class="dataLine <?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td class="textLeft">
							<span id="img_2_<?php echo $row['code']; ?>"  onclick="low('2_<?php echo $row['code']; ?>','2','<?php echo $this->vars['startTime'];?>','<?php echo $this->vars['endTime'];?>','<?php echo trim($row['name'])!='其他' ? $row['code'] : $this->uvOtherCodeStr;?>','<?php echo $this->projectUrl(array('controller'=>'act-day-data-conversion','action'=>'getdata'));?>');" class="member-data-title-2" style="cursor:pointer;">+</span>
							<span id="name_2_<?php echo $row['code']; ?>">
							<?php 
								if ($row['name']!=''){
									echo $row['name'];
								} else {
									echo "未知渠道";
								}
							 ?>	</span>	</td>
							<td><?php echo $row['uvStart']; ?></td>
							<td><?php echo $row['uvStartPercent']?></td>
							<td><?php echo $row['uvProductInfo']; ?></td>
							<td><?php echo $row['productInfoPercentInfo']; ?></td>
							<td><?php echo $row['uvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['uvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo']; ?></td>
						</tr>
						<tr class="<?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td colspan="9" style="padding:0 5px;text-align:left;">
							<span id="loading_2_<?php echo $row['code']; ?>"></span>
							<table width="100%" border="0" cellpadding="0" cellspacing="0" id="data_2_<?php echo $row['code']; ?>" class="member-data-body  member-data-2" style="display:none; text-align:left;margin:5px 0;"></table>
							</td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['uvStart'];?></td>
						<td><?php echo $count['uvStartPercent'];?></td>
						<td><?php echo $count['uvProductInfo'];?></td>
						<td><?php echo $count['productInfoPercentInfo'];?></td>
						<td><?php echo $count['uvShopping'];?></td>
						<td><?php echo $count['shoppingPercentInfo'];?></td>
						<td><?php echo $count['uvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				<!--start 02 /-->
				<?php }?>
				<!-- doType ==1 /-->
				
				
				<!-- doType ==2 -->
				<?php if ($this->vars['doType']==2){ ?>
					
				<!--start 01-->
				<?php if(count($this->pvRows)>=0){?>
				<table class="table  reportTable" >
					<tr class="subject">
						<td colspan="2">专题</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>浏览次数</td>
						<td>次数</td>
						<td>占比(%)</td>
					</tr>
					<?php 
					
					//合计
					$countAll = $this->countAll;
					$count = $countAll['pv'];
					
					foreach($this->pvRows as $key=>$row) {				
					?>
						<tr class="dataLine">
							<td class="textLeft"><?php echo $row['name']; ?></td>
							<td><?php echo $row['pvTopic']; ?></td>
							<td><?php echo $row['pvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo']; ?></td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['pvTopic'];?></td>			
						<td><?php echo $count['pvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				
				<?php }?>
				<!--start 01 /-->
				
				<div class="d-margin"></div>
				<!--start 02-->
				<?php if(count($this->uvRows)>=0){?>
				<span class="d-line"></span>
				<table class="table  reportTable">
					<tr class="subject">
						<td colspan="2">专题</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>浏览人数</td>
						<td>人数</td>
						<td>占比(%)</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['uv'];
					
					foreach($this->uvRows as $key=>$row) {
					?>
						<tr class="dataLine">
							<td class="textLeft"><?php echo $row['name']; ?></td>
							<td><?php echo $row['uvTopic']; ?></td>
							<td><?php echo $row['uvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo']; ?></td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['uvTopic'];?></td>					
						<td><?php echo $count['uvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				<!--start 02 /-->
					
				<?php }?>
				<!-- doType ==2 /-->
				
				
				<!-- doType ==3 -->
				<?php if ($this->vars['doType']==3){ ?>
				
				<!--start 01-->
				<?php if(count($this->pvRows)>=0){?>
				<table class="table  reportTable">
					<tr class="subject">
						<td>操作系统</td>
						<td colspan="2">启动</td>
						<td>商品详情页</td>
						<td colspan="2">加入购物车</td>
						<td colspan="2">加入购物车商品</td>
						<td colspan="2">进入订单页面</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>次数</td>
						<td>占比(%)</td>
						<td>浏览次数</td>
						<td>次数</td>
						<td>转化率</td>
						<td>数量</td>
						<td>转化率</td>
						<td>次数</td>
						<td>转化率</td>
						<td>数量</td>
						<td>转化率</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['pv'];
					$i=0;
					foreach($this->pvRows as $key=>$row) {
						$i++;
					?>
						<tr class="dataLine <?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td class="textLeft">
							<?php if ($this->ajaxMenuIsAccess!=0){?>
							<span id="img_1_<?php echo $row['osName']; ?>"  onclick="low('1_<?php echo $row['osName']; ?>','1','<?php echo $this->vars['startTime'];?>','<?php echo $this->vars['endTime'];?>','<?php echo $row['osName'];?>','<?php echo $this->projectUrl(array('controller'=>'act-day-data-conversion','action'=>'getdata-by-osname'));?>');" class="member-data-title-1" style="cursor:pointer;">+</span>
							<?php }?>
							<span id="name_1_<?php echo $row['osName']; ?>">
							<?php 
								if ($row['osName']!=''){
									echo $row['osName'];
								} else {
									echo "未知";
								}
							 ?>	</span>	
							</td>
							<td><?php echo $row['pvStart']; ?></td>
							<td><?php echo $row['pvStartPercent'];?></td>
							<td><?php echo $row['pvProductInfo']; ?></td>
							<td><?php echo $row['pvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['pvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['pvToCount']; ?></td>
							<td><?php echo $row['toCountPercentInfo'];?></td>
							<td><?php echo $row['pvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo'];?></td>
						</tr>
						<tr class="<?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td colspan="12" style="padding:0 5px; text-align:left;">
							<span id="loading_1_<?php echo $row['osName']; ?>"></span>
							<table width="100%" border="0" cellpadding="0" cellspacing="0" id="data_1_<?php echo $row['osName']; ?>" class="member-data-body  member-data-1" style="display:none; text-align:left; margin:5px 0;"></table>
							</td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['pvStart'];?></td>
						<td><?php echo $count['pvStartPercent'];?></td>
						<td><?php echo $count['pvProductInfo'];?></td>
						<td><?php echo $count['pvShopping'];?></td>
						<td><?php echo $count['shoppingPercentInfo'];?></td>
						<td><?php echo $count['pvShoppingNum'];?></td>
						<td><?php echo $count['shoppingNumPercentInfo'];?></td>
						<td><?php echo $count['pvToCount'];?></td>
						<td><?php echo $count['toCountPercentInfo'];?></td>
						<td><?php echo $count['pvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				<!--start 01 /-->
				
				<div class="d-margin"></div>
				<!--start 02-->
				<?php if(count($this->uvRows)>=0){?>
				<span class="d-line"></span>
				<table class="table  reportTable">
					<tr class="subject">
						<td>操作系统</td>
						<td colspan="2">启动</td>
						<td colspan="2">进入商品详情页</td>
						<td colspan="2">加入购物车</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>人数</td>
						<td>占比(%)</td>
						<td>人数</td>
						<td>转化率</td>
						<td>人数</td>
						<td>转化率</td>
						<td>人数</td>
						<td>转化率</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['uv'];
					$i=0;
					foreach($this->uvRows as $key=>$row) {
						$i++;
					?>
						<tr class="dataLine <?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td class="textLeft">
							<?php if ($this->ajaxMenuIsAccess!=0){?>
							<span id="img_2_<?php echo $row['osName']; ?>"  onclick="low('2_<?php echo $row['osName']; ?>','2','<?php echo $this->vars['startTime'];?>','<?php echo $this->vars['endTime'];?>','<?php echo $row['osName'];?>','<?php echo $this->projectUrl(array('controller'=>'act-day-data-conversion','action'=>'getdata-by-osname'));?>');" class="member-data-title-2" style="cursor:pointer;">+</span>
							<?php }?>
							<span id="name_2_<?php echo $row['osName']; ?>">
							<?php 
								if ($row['osName']!=''){
									echo $row['osName'];
								} else {
									echo "未知";
								}
							 ?>	</span>	
							</td>
							<td><?php echo $row['uvStart']; ?></td>
							<td><?php echo $row['uvStartPercent'];?></td>
							<td><?php echo $row['uvProductInfo']; ?></td>
							<td><?php echo $row['productInfoPercentInfo']; ?></td>
							<td><?php echo $row['uvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['uvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo']; ?></td>
						</tr>
						<tr class="<?php if ($i%2==0){ echo "data-show-2 "; }else{echo "data-show-1";}?>">
							<td colspan="12" style="padding:0 5px; text-align:left;">
							<span id="loading_2_<?php echo $row['osName']; ?>"></span>
							<table width="100%" border="0" cellpadding="0" cellspacing="0" id="data_2_<?php echo $row['osName']; ?>" class="member-data-body  member-data-2" style="display:none; text-align:left; margin:5px 0;"></table>
							</td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['uvStart'];?></td>
						<td><?php echo $count['uvStartPercent'];?></td>
						<td><?php echo $count['uvProductInfo'];?></td>
						<td><?php echo $count['productInfoPercentInfo'];?></td>
						<td><?php echo $count['uvShopping'];?></td>
						<td><?php echo $count['shoppingPercentInfo'];?></td>
						<td><?php echo $count['uvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				<!--start 02 /-->
				
				<?php }?>
				<!-- doType ==3 /-->
				
				
				<!-- doType ==4 -->
				<?php if ($this->vars['doType']==4){ ?>
				
				<!--start 01-->
				<?php if(count($this->pvRows)>=0){?>
				<table class="table  reportTable">
					<tr class="subject">
						<td>地域</td>
						<td colspan="2">启动</td>
						<td>商品详情页</td>
						<td colspan="2">加入购物车</td>
						<td colspan="2">加入购物车商品</td>
						<td colspan="2">进入订单页面</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>次数</td>
						<td>占比(%)</td>
						<td>浏览次数</td>
						<td>次数</td>
						<td>转化率</td>
						<td>数量</td>
						<td>转化率</td>
						<td>次数</td>
						<td>转化率</td>
						<td>次数</td>
						<td>转化率</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['pv'];
					foreach($this->pvRows as $key=>$row) {
					?>
						<tr class="dataLine">
							<td class="textLeft">
							<?php 
								if ($row['name']!=''){
									echo $row['name'];
								} else {
									echo "未知";
								}
							 ?>		
							</td>
							<td><?php echo $row['pvStart']; ?></td>
							<td><?php echo $row['pvStartPercent']?></td>
							<td><?php echo $row['pvProductInfo']; ?></td>
							<td><?php echo $row['pvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['pvShoppingNum']; ?></td>
							<td><?php echo $row['shoppingNumPercentInfo']; ?></td>
							<td><?php echo $row['pvToCount']; ?></td>
							<td><?php echo $row['toCountPercentInfo'];?></td>
							<td><?php echo $row['pvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo'];?></td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['pvStart'];?></td>
						<td><?php echo $count['pvStartPercent'];?></td>
						<td><?php echo $count['pvProductInfo'];?></td>
						<td><?php echo $count['pvShopping'];?></td>
						<td><?php echo $count['shoppingPercentInfo'];?></td>
						<td><?php echo $count['pvShoppingNum'];?></td>
						<td><?php echo $count['shoppingNumPercentInfo'];?></td>
						<td><?php echo $count['pvToCount'];?></td>
						<td><?php echo $count['toCountPercentInfo'];?></td>
						<td><?php echo $count['pvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				<!--start 01 /-->
				
				<div class="d-margin"></div>
				<!--start 02-->
				<?php if(count($this->uvRows)>=0){?>
				<span class="d-line"></span>
				<table class="table  reportTable">
					<tr class="subject">
						<td>地域</td>
						<td colspan="2">启动</td>
						<td colspan="2">进入商品详情页</td>
						<td colspan="2">加入购物车</td>
						<td colspan="2">提交订单</td>
					</tr>
					<tr class="subject">
						<td>名称</td>
						<td>人数</td>
						<td>占比(%)</td>
						<td>人数</td>
						<td>转化率</td>
						<td>人数</td>
						<td>转化率</td>
						<td>人数</td>
						<td>转化率</td>
					</tr>
					<?php 
					//合计
					$countAll = $this->countAll;
					$count = $countAll['uv'];
					foreach($this->uvRows as $key=>$row) {
					?>
						<tr class="dataLine">
							<td class="textLeft">
							<?php 
								if ($row['name']!=''){
									echo $row['name'];
								} else {
									echo "未知";
								}
							 ?>		
							</td>
							<td><?php echo $row['uvStart']; ?></td>
							<td><?php echo $row['uvStartPercent']?></td>
							<td><?php echo $row['uvProductInfo']; ?></td>
							<td><?php echo $row['productInfoPercentInfo']; ?></td>
							<td><?php echo $row['uvShopping']; ?></td>
							<td><?php echo $row['shoppingPercentInfo']; ?></td>
							<td><?php echo $row['uvOrder']; ?></td>
							<td><?php echo $row['orderPercentInfo']; ?></td>
						</tr>
					<?php
					}
					?>
					<tr class="subject count">
						<td class="textCenter">总计</td>
						<td><?php echo $count['uvStart'];?></td>
						<td><?php echo $count['uvStartPercent'];?></td>
						<td><?php echo $count['uvProductInfo'];?></td>
						<td><?php echo $count['productInfoPercentInfo'];?></td>
						<td><?php echo $count['uvShopping'];?></td>
						<td><?php echo $count['shoppingPercentInfo'];?></td>
						<td><?php echo $count['uvOrder'];?></td>
						<td><?php echo $count['orderPercentInfo'];?></td>
					</tr>
				</table>
				<?php }?>
				<!--start 02 /-->
				
				<?php }?>
				<!-- doType ==4 /-->
				
				
				
				
				
				
				<div  class="d-note">
				<?php if($this->productCode == 'moonbasa'){?>
					说明：转化率统计的数据是从安卓1.4和iPhone1.5版本起。 &nbsp;&nbsp;&nbsp;&nbsp; 【<a href="<?php echo $this->projectUrl(array('controller'=>'client-version-data','action'=>'index'));?>">查看版本分布</a>】
				<?php }?>
				</div>
				<!--content end-->
					
		</div>
			
			
			
			
				
				
				
				
	</div>
	</div>
</div>


<script language="javascript">
function selData(action,dateType,doType){
    $('#searchForm').attr('action', action);
	$('#dateType').attr('value', dateType);
	$('#doType').attr('value', doType);
    $('#searchForm').submit();
}



function low(val,flag,startTime,endTime,code,doUrl){
	$check = $.trim($('#img_'+val).text());
	if($check == '+'){
		$('.member-data-title-'+flag).html('+');
		$('.member-data-'+flag).hide();
		$('#data_'+val).show();
		$('#img_'+val).html('-');
		
		if($('#data_'+val+ ' tr').length == 0){
			$('#loading_'+val).html('加载中...');
			$.ajax({    
					 type: "POST",        
					 url: doUrl,    
					 data:   "flag="+flag+"&name="+$.trim($('span#name_'+val).text())+"&startTime="+startTime+"&endTime="+endTime+"&code="+code,    
					 success: function(data){
						$('#data_'+val).html($.trim(data));
						$('#loading_'+val).hide();
					 }    
					});   
		}
	}else{
		$('#data_'+val).hide();
		$('#img_'+val).html('+');
	}
}







</script>
</body>
</html>